<?php
require 'comm/chkLoginState.php';
if ($_GET){
    $id = $_GET['id'];
    $com = new DB();
    $where = ' where admin_id = '.$id;
    $re = $com->delete('admin_info', $where);
    if($re){
        echo "<script type='text/javascript'>alert('sussess');window.location.href='admin_index.php';</script>";
    }else{
        echo "<script type='text/javascript'>alert('fail');window.location.href='admin_index.php'</script>";
    }
}